-- GENERATED SPELL FOR [Ambershard Crusher] --


function spell0_11781(pUnit, Event) --@Crush Armor,n/a--
pUnit:FullCastSpellOnTarget(21055,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11781', 30294, 1)
end

function Sorts_11781(pUnit, Event)
local choix_sorts_11781 = math.random(0, 0)
if choix_sorts_11781 == 0 then
pUnit:RegisterEvent('spell0_11781', 1, 1)
end
end

function mob11781_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11781', math.random(1500, 3000), 1)
end

function mob11781_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11781_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11781_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11781, 1, 'mob11781_Action')
RegisterUnitEvent(11781, 2, 'mob11781_Leave')
RegisterUnitEvent(11781, 3, 'mob11781_Kill')
RegisterUnitEvent(11781, 4, 'mob11781_Die')
